#ifndef TRACKER_DISPLAY_MODEL_H
#define TRACKER_DISPLAY_MODEL_H

#include <QAbstractTableModel>

class tracker_display_model : public QAbstractTableModel
{
    Q_OBJECT
public:
    explicit tracker_display_model(QList < QVector<int> >& datasource,QObject *parent = 0);
    int rowCount(const QModelIndex &parent = QModelIndex()) const ;
    int columnCount(const QModelIndex &parent = QModelIndex()) const;
    QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
    bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
    Qt::ItemFlags flags(const QModelIndex & index) const ;

signals:
    
public slots:
private:
    int cols;
    int rows;
    QList < QVector<int> > m_datasource;
};

#endif // TRACKER_DISPLAY_MODEL_H
